import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
    {
        name: 'endpoint',
        path: '/endpoint',
        component: () => import('../views/Endpoint.vue'),
    },
    {
        name: 'help',
        path: '/help',
        component: () => import('../views/Help.vue'),
    },
    {
        name: 'setting',
        path: '/setting',
        component: () => import('../views/Setting.vue'),
    },
    {
        name: 'component-v2ray',
        path: '/component/v2ray',
        component: () => import('../views/V2ray.vue'),
    },
    {
        name: 'component-color',
        path: '/component/color',
        component: () => import('../views/Color.vue'),
    },
]

export const router = createRouter({ history: createWebHistory(), routes })
